package com.zan.pattern.adapter.object_adapter;

/**
 * @Author Zan
 * @Create 2024/4/25 21:22
 * @Description : 计算机类
 * @ClassName: Computer
 */
public class Computer {

    // 从SD卡读取数据
    public String readSD(SDCard sdCard) {
        if (sdCard == null) {
            throw new NullPointerException("SDCard is not null");
        }
        return sdCard.readSD();
    }
}
